﻿using UnityEngine;
using System.Collections;

public class GetInput {

	Main Mainscripts;

	public void Load()
	{
		Mainscripts = Camera.main.gameObject.GetComponent <Main> () as Main;
	}

	public void Update(Main.State SCR)
	{
		switch (SCR){
		case Main.State.Menu:
			if(Input.GetKeyDown(KeyCode.S)){
				Mainscripts.StartGame();
			}
			break;
		case Main.State.Game:
			Mainscripts._bask.GetInput();
			Mainscripts._bird.GetInput();
			break;
		case Main.State.Lose:
			if(Input.GetKeyDown(KeyCode.R)){
				Mainscripts.ResetGame();
			}
			break;
		}


	}
}
